CC = gcc

CFLAGS = -Wall 

EXEC_NAME = main.out

INCLUDES = -I/usr/include

LIBS = -L/usr/lib -lm -lncurses -lSDL -lSDL_ttf -lSDL_image -lSDL_mixer

OBJ_FILES = Jeu.o JeuNcurses.o JeuSdl.o Terrain.o TirJoueur.o VaisseauE.o VaisseauJ.o TirEnnemi.o ListeTirJ.o ListeTirE.o ListeVaissE.o main.o score.o Bonus.o

all: $(EXEC_NAME)
$(EXEC_NAME) : $(OBJ_FILES)
		$(CC) -o $(EXEC_NAME) $(OBJ_FILES) $(LIBS)
		
%.o: %.c
		$(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $<
		
clean :  
		rm $(OBJ_FILES)
